package com.itheima.grow.controller;

import com.itheima.grow.model.info.OssFileInfo;
import com.itheima.grow.model.other.Result;
import com.itheima.grow.service.IQuestionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Slf4j
@RestController
@RequestMapping("/test")
public class TestController {

    @Resource
    private IQuestionService questionService;

    @GetMapping("/test01")
    public Result downPdf() {
        return Result.success(questionService.getList());
    }
}
